package com.example.demo.design.template_method.salary_deliver;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 17:56 2020/11/14
 * @Modified By:
 */
public class TestMonthlySalary {
    public static void main(String[] args) {
        SalariedEmployee employee = new SalariedEmployee(1000, "lyl", 1001, new MyDate(2020, 11, 14));
        double earnings = employee.earnings();
        System.out.println(employee + " 工资是：" + earnings);
    }
}
